package com.ruoyi.project.system.collaboration_intents.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.collaboration_intents.mapper.CollaborationIntentsMapper;
import com.ruoyi.project.system.collaboration_intents.domain.CollaborationIntents;
import com.ruoyi.project.system.collaboration_intents.service.ICollaborationIntentsService;
import com.ruoyi.common.utils.text.Convert;

/**
 * collaboration_intentsService业务层处理
 * 
 * @author admin
 * @date 2025-04-24
 */
@Service
public class CollaborationIntentsServiceImpl implements ICollaborationIntentsService 
{
    @Autowired
    private CollaborationIntentsMapper collaborationIntentsMapper;

    /**
     * 查询collaboration_intents
     * 
     * @param id collaboration_intents主键
     * @return collaboration_intents
     */
    @Override
    public CollaborationIntents selectCollaborationIntentsById(Long id)
    {
        return collaborationIntentsMapper.selectCollaborationIntentsById(id);
    }

    /**
     * 查询collaboration_intents列表
     * 
     * @param collaborationIntents collaboration_intents
     * @return collaboration_intents
     */
    @Override
    public List<CollaborationIntents> selectCollaborationIntentsList(CollaborationIntents collaborationIntents)
    {
        return collaborationIntentsMapper.selectCollaborationIntentsList(collaborationIntents);
    }

    /**
     * 新增collaboration_intents
     * 
     * @param collaborationIntents collaboration_intents
     * @return 结果
     */
    @Override
    public int insertCollaborationIntents(CollaborationIntents collaborationIntents)
    {
        return collaborationIntentsMapper.insertCollaborationIntents(collaborationIntents);
    }

    /**
     * 修改collaboration_intents
     * 
     * @param collaborationIntents collaboration_intents
     * @return 结果
     */
    @Override
    public int updateCollaborationIntents(CollaborationIntents collaborationIntents)
    {
        return collaborationIntentsMapper.updateCollaborationIntents(collaborationIntents);
    }

    /**
     * 批量删除collaboration_intents
     * 
     * @param ids 需要删除的collaboration_intents主键
     * @return 结果
     */
    @Override
    public int deleteCollaborationIntentsByIds(String ids)
    {
        return collaborationIntentsMapper.deleteCollaborationIntentsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除collaboration_intents信息
     * 
     * @param id collaboration_intents主键
     * @return 结果
     */
    @Override
    public int deleteCollaborationIntentsById(Long id)
    {
        return collaborationIntentsMapper.deleteCollaborationIntentsById(id);
    }
}
